package com.xja.webchat.service.impl;

import com.xja.webchat.entity.Reply;
import com.xja.webchat.mapper.ReplyMapper;
import com.xja.webchat.service.ReplyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service("replyService")
public class ReplyServiceImpl implements ReplyService {
    @Autowired
    private ReplyMapper replyMapper;


    @Override
    @Transactional(readOnly = true)
    public List<Reply> selectBySid(Integer sid) {
        return replyMapper.selectBySid(sid);
    }
}
